<?php
class eventpage extends page{
	public $userId;
	public $events;
	public function __construct(){
		parent::__construct();
		$this->ownerId = $_GET['userId'];
		$this->userId = $_SESSION["userId"];
		$this->title = "事件管理";
	 	$this->initEvents($this->userId);
	}
	public function initEvents($userId){
		$dao = new eventdao();
		$events = $dao->getEvents($userId);
		$this->events = $events;
		return $events;
	}
	
	 
}
?>